/*
 * @Author: your name
 * @Date: 2021-11-01 18:20:14
 * @LastEditTime: 2022-02-22 09:50:31
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \vue-antd-admin\src\router\async\router.map.js
 */
// 视图组件
const view = {
  tabs: () => import('@/layouts/tabs'),
  blank: () => import('@/layouts/BlankView'),
  page: () => import('@/layouts/PageView')
}

// 路由组件注册
const routerMap = {
  login: {
    authority: '*',
    path: '/login',
    component: () => import('@/pages/login')
  },
  demo: {
    name: '演示页',
    renderMenu: false,
    component: () => import('@/pages/demo')
  },
  exp403: {
    authority: '*',
    name: 'exp403',
    path: '403',
    component: () => import('@/pages/exception/403')
  },
  exp404: {
    name: 'exp404',
    path: '404',
    component: () => import('@/pages/exception/404')
  },
  exp500: {
    name: 'exp500',
    path: '500',
    component: () => import('@/pages/exception/500')
  },
  root: {
    path: '/',
    name: '首页',
    redirect: '/login',
    component: view.tabs,
  },

  Dashboard: {            //仪表盘
    name: 'Dashboard',
    icon: 'dashboard',
    component: view.blank
  },
  workbench: {            //工作台
    name: '工作台',
    component: () => import('@/pages/blank/index')
  },
  analyse: {
    name: '分析页',                //分析页
    component: () => import('@/pages/blank/index')
  },
  personalCenter: {   //个人中心
    invisible: true,         //隐藏路由
    component: () => import('@/pages/mine/PersonalCenter')
  },



  enterprise: {           //企业管理
    name: '企业管理',
    icon: 'bank',
    component: view.page
  },
  teachingCulture: {           //教培公司
    name: 'teachingCulture',
    component: () => import('@/pages/enterprise/TeachingCulture'),
  },

  teachingAdd: {
    name: 'teachingAdd',              //教培公司添加
    invisible: true,         //隐藏路由
    component: () => import('@/pages/enterprise/TeachingAdd')
  },

  teachingEdit: {
    name: 'teachingEdit',              //教培公司编辑
    invisible: true,         //隐藏路由
    component: () => import('@/pages/enterprise/TeachingEdit')
  },
  auditHousing: {
    name: 'auditHousing',              //房源审核
    icon: 'frown',
    component: () => import('@/pages/findShopAudit/auditHousing')
  },
  auditMsg: {
    name: 'auditMsg',              //房源 - 跟进情况
    invisible: true,         //隐藏路由
    component: () => import('@/pages/findShopAudit/AuditMsg')
  },
  subscribe: {
    name: 'subscribe',              //房源 - 跟进情况
    icon: 'clock-circle',
    component: () => import('@/pages/findShop/Subscribe')
  },
  subscribeEdit: {
    name: 'SubscribeEdit',              //房源 - 跟进情况
    invisible: true,         //隐藏路由
    component: () => import('@/pages/findShop/SubscribeEdit')
  },
  personnelManagement: {
    // name:'teachingAdd',              //内部人员管理
    icon: 'team',
    component: view.page
  },


  findShop: {      //找商办
    icon: 'money-collect',
    component: view.blank
  },

  officeBuildings: {   //写字楼
    icon: 'shop',
    component: view.page
  },

  housing: {   //房源
    icon: 'shop',
    component: () => import('@/pages/findShop/Housing')
  },
  housingAdd: {
    invisible: true,         //隐藏路由
    component: () => import('@/pages/findShop/HousingAdd')
  },
  housingEdit: {
    invisible: true,         //隐藏路由
    component: () => import('@/pages/findShop/HousingEdit')
  },
  buildingList: {
    icon: 'bank',
    component: () => import('@/pages/findShop/BuildingList')
  },
  buildingAdd: {
    invisible: true,         //隐藏路由
    component: () => import('@/pages/findShop/BuildingAdd')
  },
  buildingEdit: {
    invisible: true,         //隐藏路由
    component: () => import('@/pages/findShop/BuildingEdit')
  },
  pool: {
    icon: 'usergroup-add',
    component: view.page
  },
  publicPool: {    //公海客户池子
    component: () => import('@/pages/findShoPool/PublicPool')
  },
  publicPoolAdd: {     //公海客户 添加
    invisible: true,         //隐藏路由
    component: () => import('@/pages/findShoPool/PublicPoolAdd')
  },
  publicPoolEdit: {   //公海客户 编辑
    invisible: true,         //隐藏路由
    component: () => import('@/pages/findShoPool/PublicPoolEdit')
  },

  areaManagement: {   //区域管理 编辑
    icon: "pull-request",
    component: () => import('@/pages/area/areaManagement')
  },

  areaAdd: {   //区域管理 添加
    invisible: true,         //隐藏路由
    component: () => import('@/pages/area/areaAdd')
  },



  areaEdit: {   //区域管理 编辑
    invisible: true,         //隐藏路由
    component: () => import('@/pages/area/areaEdit')
  },


  privatePool: {
    component: () => import('@/pages/findShoPool/PrivatePool')
  },


  japanPartTime: {
    icon: 'like',
    component: view.page
  },

  bindService: {
    icon: 'user',
    component: () => import('@/pages/japanPartTime/BindService')
  },


  adminList: {        //员工列表              
    icon: 'user',
    component: () => import('@/pages/personnelManagement/AdminList')
  },
  roleList: {        //权限列表              
    icon: 'key',
    component: () => import('@/pages/personnelManagement/RoleList')
  },
  roleAdd: {                 //权限添加        
    invisible: true,         //隐藏路由
    component: () => import('@/pages/personnelManagement/RoleAdd')
  },
  roleEdit: {                //权限编辑              
    invisible: true,         //隐藏路由
    component: () => import('@/pages/personnelManagement/RoleEdit')
  },
  adminAdd: {
    invisible: true,         //隐藏路由
    component: () => import('@/pages/personnelManagement/AdminAdd')
  },

  adminEdit: {
    invisible: true,         //隐藏路由
    component: () => import('@/pages/personnelManagement/AdminEdit')
  },

  storeManagement: {
    icon: 'shop',
    component: view.page
  },

  storeList: {
    icon: 'table',
    component: () => import('@/pages/storeManagement/StoreList')
  },

  storeAdd: {
    invisible: true,         //隐藏路由
    component: () => import('@/pages/storeManagement/StoreAdd')
  },
  storeEdit: {
    invisible: true,         //隐藏路由
    component: () => import('@/pages/storeManagement/StoreEdit')
  },
  adminEdit: {
    invisible: true,         //隐藏路由
    component: () => import('@/pages/personnelManagement/AdminEdit')
  },
  systemSettings: {
    icon: 'setting',
    component: view.page
  },
  operationLog: {
    icon: 'edit',
    component: () => import('@/pages/systemSettings/OperationLog')
  },
  findShopSettings: {
    icon: 'setting',
    component: () => import('@/pages/findShop/Settings')
  },
  parent2: {
    name: '父级路由2',
    icon: 'form',
    component: view.page
  },
  exception: {
    name: '异常页',
    icon: 'warning',
    component: view.blank
  },
  crmManagement: {
    // name: '',
    icon: 'pie-chart',
    component: view.page
  },

  divisionManagement: {
    icon: 'team',
    component: () => import('@/pages/crm/DivisionManagement')
  },
  divisionEdit: {
    invisible: true,         //隐藏路由

    component: () => import('@/pages/crm/DivisionEdit')
  },
  divisionAdd: {
    invisible: true,         //隐藏路由

    component: () => import('@/pages/crm/DivisionAdd')
  },
  crmRole: {
    //隐藏路由
    icon: 'key',
    component: () => import('@/pages/crm/crmRole')
  },
  crmRoleAdd: {
    //隐藏路由
    invisible: true,         //隐藏路由
    component: () => import('@/pages/crm/crmRoleAdd')
  },
  crmRoleEdit: {
    //隐藏路由
    invisible: true,         //隐藏路由
    component: () => import('@/pages/crm/crmRoleEdit')
  },
  crmOperationLog: {
    //隐藏路由
    icon: 'edit',
    component: () => import('@/pages/crm/crmOperationLog')
  }

}
export default routerMap
